package wlxldh357.OOP;

public class J31_RetangleService implements J31_RetanlgeInterface {

	@Override
	public float getArea(float width, float height) {
		return (width * height);
	}

	@Override
	public float getPerimter(float width, float height) {
		return (2 * width + 2 * height);
	}

	@Override
	public float getArea(RetangleVO r) {
	
		return r.getWidth() * r.getHeight();
	}

	@Override
	public float getPerimter(RetangleVO r) {
	
		return 2*r.getWidth() + 2* r.getHeight();
	}
}
